/**
 * Created by 13576 on 2017/12/6.
 */
import NewCashTransactionClassComp from "containers/pay-setting/cash-transaction-class/new-cash-transaction-class";
import CashTransactionClassDetailComp from "containers/pay-setting/cash-transaction-class/cash-transaction-class-detail";
import BankAccountDetailComp from "containers/pay-setting/company-account-setting/bank-account-detail";
import AddAuthorizationComp from "containers/pay-setting/company-account-setting/add-authorization";

import PaymentMethodComp from "containers/pay-setting/payment-method/payment-method";
import CashTransactionClassComp from "containers/pay-setting/cash-transaction-class/cash-transaction-class";
import CompanyAccountSettingComp from "containers/pay-setting/company-account-setting/company-account-setting";


//支付设置
const paySetting = {
  key:'pay-setting',
  icon: 'pay-circle',
  admin: true,
  hideInUrl: ['console-my.huilianyi.com', 'console-sg.huilianyi.com'],
  subMenu: [
    //付款方式定义
    {
      key:'payment-method',
      url:'/main/pay-setting/payment-method',
      components: PaymentMethodComp ,
      parent: 'pay-setting',
      children: {}
    },
    //付款公司配置
    
    //公司账户设置
    {
      key: 'company-account-setting',
      url: '/main/pay-setting/company-account-setting',
      components: CompanyAccountSettingComp,
      parent: 'setting',
      children: {
        //银行账户详情
        bankAccountDetail: {
          key: 'bank-account-detail',
          url: '/main/pay-setting/company-account-setting/bank-account-detail/:companyBankId',
          components: BankAccountDetailComp,
          parent: 'company-maintain'
        },
        //添加授权
        addAuthorization: {
          key: 'account-add-authorization',
          url: '/main/pay-setting/company-account-setting/account-add-authorization',
          components: AddAuthorizationComp,
          parent: 'company-maintain'
        }
      }
    },
    //现金流量项
    
    //现金事务定义
    {
      key:'cash-transaction-class',
      url:'/main/pay-setting/cash-transaction-class',
      components: CashTransactionClassComp ,
      parent: 'pay-setting',
      children: {
        //新建现金事务
        newCashTransactionClass: {
          key:'new-cash-transaction-class',
          url:'/main/pay-setting/cash-transaction-class/new-cash-transaction-class',
          components: NewCashTransactionClassComp ,
          parent: 'cash-transaction-class',
        },
        //现金事务分类详情
        cashTransactionClassDetail: {
          key:'cash-transaction-class-detail',
          url:'/main/pay-setting/cash-transaction-class/:classId/cash-transaction-class-detail',
          components: CashTransactionClassDetailComp ,
          parent: 'cash-transaction-class',
        }
      }
    }
  ]
};

export default paySetting
